<script language="javascript">
    $(function(){ $("#books").pagination(); });
</script>
<div id ="books">
    <?
    foreach ($books as $book):
        ?>
        <div>
            <table>
                <tr>
            <td><? echo $book['Book']['id']; ?> </td>
            <td><? echo $book['Book']['title']; ?> </td> &nbsp;
            </tr>
            </table>
        </div>
    <? endforeach; ?>
</div>